﻿using MagicWorld.DDD.Domain.Entity;

namespace MagicWorld.DDD.Domain.Service.DamagePolicy.Impl
{
    public class DragonImmunityPolicy : IDamagePolicy
    {
        public long CalculateDamage(Player player, Weapon weapon, Monster monster)
        {
            return 0;
        }

        public bool CanApply(Player player, Weapon weapon, Monster monster)
        {
            return player.PlayerClass != Types.PlayerClass.DragonKnight || monster.MonsterClass != Types.MonsterClass.Dragoon;
        }
    }
}